<template>
  <div class="globale">
    <div class="desktop">
      <Desktop @close="deskclick"></Desktop>
    </div>
    <div class="bar">
      <div class="begin" @click="begin()">
        <img src="./assets/begin.png" alt="">
      </div>

    </div>
    <Begin v-if="drawer" @send-data="beginitem" class="begindrawer" style=""></Begin>
  
  </div>
</template>
<script setup>
import Begin from './components/Begin.vue'
import Desktop from './components/Desktop.vue'
import { ref, computed } from 'vue'
const drawer = ref(false)
const direction = ref("btt")
const begin = () => {
  drawer.value = !drawer.value
}
const beginitem = (e) => {
  console.log(e)
  drawer.value = false

}
const deskclick = (e) => {
drawer.value=false;
}

</script>
<style scoped>
.desktop {
  width: 100%;
  height: calc(100% - 45px);
}

header {
  line-height: 1.5;
}

.begindrawer {
  position: absolute;
  left: 10px;
  bottom: 55px;
  z-index: 200000;
  width: 40%;
  min-height: 60%;
  background: #eee;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
  box-shadow: 0 5px 10px #0009;
  padding: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

}

.bar {
  width: 100%;
  height: 45px;
  background: #eee;
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 0px;
  left: 0px;

}

.logo {
  display: block;
  margin: 0 auto 2rem;
}

.globale {
  width: 100%;
  height: 100%;
  background: url("./assets/back.jpg") no-repeat;
  background-size: 100% 100%;
}

.begin {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.begin img {
  width: 24px;
  height: 24px;
}
</style>
